x = eval(input("请输入："))
y =[]
for i in range(0,len(x)):
    a = x[i]
    for n in range(2,a):
        if a%n==0:
            y.append(a)
            break   
for m in range(0,len(y)):
    x1 = y[m]
    if x1 in x:
        x.remove(x1)
print(x)
           
              
        

        
    

